
// 删除请求参数中无效的参数
export function deleteInvalidParam(params) {
  for (let key in params) {
    let value = params[key];
    if (typeof value === "string" && !value.trim().length) {
      delete params[key];
    } else if (Array.isArray(value) && !value.length) {
      delete params[key];
    } else if (value == "-") {
      delete params[key];
    }
  }
  return params;
}
